if __name__ == "__main__":
    try:
        int(input("请输入一个整数："))
    except ValueError as reason:
        print("出错啦：" + str(reason))
    else:
        print("没有任何异常！")